﻿using System.Collections.Generic;

namespace Softserve.Pottery.Store.Contracts
{
    using System.ServiceModel;
    using Softserve.Pottery.Store.Domains;

    /// <summary>
    /// TODO: add the necessary functionality
    /// </summary>
    
    [ServiceContract]
    public interface IProductContract
    {
        [OperationContract]
        void AddProduct(Product item);

        [OperationContract]
        void EditProduct(Product item);

        [OperationContract]
        void RemoveProduct(Product item);

        [OperationContract]
        Product GetProductById(int productId);

        [OperationContract]
        IEnumerable<Product> GetProducts();

        [OperationContract]
        IEnumerable<Product> GetProductsByCatalogId(int catalogId);
    }
}
